package com.yzy.soft.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author yinzhiyuan
 * @since 2017-12-30
 */
public class Ruleversion extends Model<Ruleversion> {

    private static final long serialVersionUID = 1L;
//	@TableId(type=IdType.INPUT)
	@TableId(value = "id",type=IdType.UUID)
	private String id;
	private String versionname;
	private String versionnumber;
	private String versionstate;
	private Date create;
	private Date update;
	private String applicationid;
	@TableField(value = "userflag")
	private int userflag;
	@TableField(value = "deleteflag")
	@TableLogic
	private int deleteflag;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVersionname() {
		return versionname;
	}

	public void setVersionname(String versionname) {
		this.versionname = versionname;
	}

	public String getVersionnumber() {
		return versionnumber;
	}

	public void setVersionnumber(String versionnumber) {
		this.versionnumber = versionnumber;
	}

	public String getVersionstate() {
		return versionstate;
	}

	public void setVersionstate(String versionstate) {
		this.versionstate = versionstate;
	}

	public Date getCreate() {
		return create;
	}

	public void setCreate(Date create) {
		this.create = create;
	}

	public Date getUpdate() {
		return update;
	}

	public void setUpdate(Date update) {
		this.update = update;
	}

	public String getApplicationid() {
		return applicationid;
	}

	public void setApplicationid(String applicationid) {
		this.applicationid = applicationid;
	}

	public int getUserflag() {
		return userflag;
	}

	public void setUserflag(int userflag) {
		this.userflag = userflag;
	}

	public int getDeleteflag() {
		return deleteflag;
	}

	public void setDeleteflag(int deleteflag) {
		this.deleteflag = deleteflag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Ruleversion{" +
			"id=" + id +
			", versionname=" + versionname +
			", versionnumber=" + versionnumber +
			", versionstate=" + versionstate +
			", creat=" + create +
			", update=" + update +
			", applicationid=" + applicationid +
			"}";
	}
}
